package com.example.demo.react;

import org.junit.Test;

public class Client {

    @Test
    public void customer() {
        Movie movie = new Movie("metal",2);
        Rental rental = new Rental(movie,8);
        Customer customer = new Customer("Lee");
        customer.addRental(rental);
        System.out.println(customer.statement());
    }


    @Test
    public void customerRefactor() {
        Movie movie = new Movie("metal",2);
        Rental rental = new Rental(movie,8);
        Customer customer = new Customer("Lee");
        customer.addRental(rental);
        System.out.println(customer.statement());
    }
}
